@extends('layout.admin')

@section('title','版块列表')


@section('content')

<div class="mws-panel grid_8">
	
  <div class="mws-panel-header">
    <span>
      <i class="icon-table"></i>版块列表页</span>
  </div>

  <div class="mws-panel-body no-padding">
    <div id="DataTables_Table_0_wrapper" class="dataTables_wrapper" role="grid">
    <form action="/cate/index" method="get">
      
      <div class="dataTables_filter" id="DataTables_Table_0_filter">
        <label>查询:
          <input aria-controls="DataTables_Table_0" name="keyword" value="{{$request->input('keyword')}}" type="text">&nbsp;&nbsp;<button class="btn btn-info"><i class="icon-search"></i></button>
        </label></div>
    </form>
      <table class="mws-datatable mws-table dataTable" id="DataTables_Table_0" aria-describedby="DataTables_Table_0_info">
        <thead>
          <tr role="row">
            <th class="sorting_asc" role="columnheader" tabindex="0" aria-controls="DataTables_Table_0" rowspan="1" colspan="1" style="width: 187px;" aria-sort="ascending" aria-label="Rendering engine: activate to sort column descending">ID</th>
            <th class="sorting" role="columnheader" tabindex="0" aria-controls="DataTables_Table_0" rowspan="1" colspan="1" style="width: 249px;" aria-label="Browser: activate to sort column ascending">版块名称</th>
            <th class="sorting" role="columnheader" tabindex="0" aria-controls="DataTables_Table_0" rowspan="1" colspan="1" style="width: 249px;" aria-label="Browser: activate to sort column ascending">状态</th>

            <th class="sorting" role="columnheader" tabindex="0" aria-controls="DataTables_Table_0" rowspan="1" colspan="1" style="width: 118px;" aria-label="CSS grade: activate to sort column ascending">操作</th></tr>
        </thead>
        <tbody role="alert" aria-live="polite" aria-relevant="all">
          @foreach($cate as $k=>$v)
          <tr class="@if($k%2 == 1) odd @else even @endif">
            <td class="  sorting_1">{{$v->id}}</td>
            <td class=" ">{{$v->title}}</td>
            <td class=" ">{{$v->status}}</td>
            <td class="a"><a href="/cate/edit?id={{$v->id}}">修改</a>&nbsp;&nbsp;&nbsp;<a href="/cate/delete?id={{$v->id}}">删除</a></td>
          </tr>
         @endforeach
        </tbody>
      </table>
     
    </div>
  </div>
</div>
@endsection